package com.atguigu.exer;

/**
 * @author yihu
 * @create 2021-02-25 11:01
 * @email: 1057202547@qq.com
 * @dec:
 */
public class StringTest {

    String str = new String("good");
    char[] ch = { 't', 'e', 's', 't' };

    public void change(String str, char[] ch) {
        str = "test ok";
        ch[0] = 'b';
    }
    public static void main(String[] args) {
        StringTest ex = new StringTest();
        ex.change(ex.str, ex.ch);
        System.out.println(ex.str); //good
        System.out.println(ex.ch); // best
    }
}
